import http from './http'

export const loginByUsername = (obj) => {
  return http({
    url: '/login',
    method: 'post',
    data: obj
  })
}

export const checkToken = () => {
  return http({
    url: '/token/access',
    method: 'get',
  })
}
